/**
 * @filename:SysAdmin 2022年1月27日
 * @project Wonder wallet Framework  V1.0
 * Copyright(c) 2020 LuZhongren Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.admin.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.FieldFill;


/**   
 * @Description:TODO(后台用户管理实体类)
 * 
 * @version: V1.0
 * @author: LuZhongren
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_admin")
@ApiModel(value="admin对象", description="后台用户管理表")
public class SysAdmin extends Model<SysAdmin> {

	private static final long serialVersionUID = 1643435488477L;
	
	@TableId(value ="user_id", type = IdType.AUTO)
	@ApiModelProperty(name = "user_id" , value = "编号")
	private Long user_id;
    
 	@TableField(value = "name")
	@ApiModelProperty(name = "name" , value = "真实姓名")
	private String name;
    
 	@TableField(value = "user")
	@ApiModelProperty(name = "user" , value = "登录账户")
	private String user;
    
 	@TableField(value = "pwd")
	@ApiModelProperty(name = "pwd" , value = "密码")
	private String pwd;
    
 	@TableField(value = "google_secret")
	@ApiModelProperty(name = "google_secret" , value = "谷歌密钥")
	private String google_secret;
    
 	@TableField(value = "role_id")
	@ApiModelProperty(name = "role_id" , value = "所属分组")
	private Integer role_id;
    
 	@TableField(value = "note")
	@ApiModelProperty(name = "note" , value = "备注")
	private String note;
    
 	@TableField(value = "type")
	@ApiModelProperty(name = "type" , value = "用户类型")
	private Integer type;
    
 	@TableField(value = "status")
	@ApiModelProperty(name = "status" , value = "状态")
	private Integer status;
 	
 	@TableField(value = "is_caller")
	@ApiModelProperty(name = "is_caller" , value = "是否客服")
	private Integer is_caller;
 	
 	@TableField(exist = false)
	@ApiModelProperty(name = "role_name" , value = "分组名")
	private String role_name;
    
 	@TableField(value = "create_time",fill = FieldFill.INSERT)
	@ApiModelProperty(name = "create_time" , value = "创建时间")
	private Date create_time;
 	
 	@TableField(value = "update_time",fill = FieldFill.UPDATE)
	@ApiModelProperty(name = "update_time" , value = "更新时间")
	private Date update_time;
    
 	

	@Override
    public Serializable pkVal() {
        return this.user_id;
    }
}
